<div class="layui-footer">
      <!-- 底部固定区域 -->
      © Design by tarkasi 2018
    </div>
  </div>
</body>
<script>
    //JavaScript代码区域
    layui.use('element', function () {
        var element = layui.element;
    });
    layui.use('layer', function() { //独立版的layer无需执行这一句
        var $ = layui.jquery, layer = layui.layer; //独立版的layer无需执行这一句
        $('#logout').on('click',function(){
            $('#logout:parent').removeClass('layui-show');
            $('#logout').removeClass('layui-this');
            layer.open({
                title:'温馨提示'
                ,skin: 'demo-class'
                ,content: '确认注销？'
                ,btn: ['确定', '取消']
                ,yes: function(index, layero){
                    //按钮【按钮一】的回调
                    $(location).attr('href', "{:U('Login/logout')}");
//                    $.post("{:U('Login/logout')}");
                    layer.close(index);
                }
                ,btn2: function(index, layero){
                    //按钮【按钮二】的回调

                    layer.close(index);
                    //return false 开启该代码可禁止点击该按钮关闭
                }
                ,cancel: function(){

                    //右上角关闭回调
                    //return false 开启该代码可禁止点击该按钮关闭
                }
            });
        });

    });

    $(document).ready(function(){
        $('input').attr('autocomplete', 'off'); 
    })

</script>


</html>

